using Engine;
using Engine.OldSerialization;

namespace RuthlessConquest {
    public struct PlanetImage {
        public class Serializer : ISerializer<PlanetImage> {
            public void Serialize(InputArchive archive, ref PlanetImage value) {
                archive.Serialize("Position", ref value.Position);
                archive.Serialize("SizeClass", ref value.SizeClass);
                archive.Serialize("Faction", ref value.Faction);
            }

            public void Serialize(OutputArchive archive, PlanetImage value) {
                archive.Serialize("Position", value.Position);
                archive.Serialize("SizeClass", value.SizeClass);
                archive.Serialize("Faction", value.Faction);
            }
        }

        public Point2 Position;

        public int SizeClass;

        public Faction Faction;
    }
}